package org.room402.entity.system;

import lombok.Data;
import org.room402.constant.system.ErrorCode;

@Data
public class BusinessError extends RuntimeException{
    private String code;
    private String msg;
    private ErrorCode.ErrorLevel level;

    public BusinessError(String code, String msg, ErrorCode.ErrorLevel level) {
        super(msg);
        this.code = code;
        this.msg = msg;
        this.level = level;
    }
}
